module.exports = {
    pluginOptions: {
      electronBuilder: {
        // 允许 node
        nodeIntegration: true,
        // 运行再次获取
        externals: ['ffi-napi', 'ref-napi'],
        builderOptions: {
            extraResources: {
              // 拷贝静态文件到指定位置,否则打包之后出现找不到资源的问题.将整个resources目录拷贝到 发布的根目录下
              from: 'resources/',
              to: './'
            }
          }
      },
    },
  };